﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Jbe.TestSuite.Infrastructure.Interface;
using Microsoft.Practices.Composite;
using Jbe.TestSuite.Repl.Presentation;
using Microsoft.Practices.Composite.Presentation.Commands;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.Repl.Applications;


namespace Jbe.TestSuite.Repl
{
    internal class Module : IModule
    {
        private readonly IApplicationContainer container;


        public Module(IApplicationContainer container)
        {
            this.container = container;

            container.RegisterType<IReplView, ReplView>(false);
        }


        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
